package com.liveinstars.gateway.business.event;

//import com.alibaba.fastjson.JSON;
//import lombok.Data;
//
//import java.util.Date;
//
//@Data
//public class LeaveEvent extends DomainEvent {
//
//    LeaveEventType leaveEventType;
//
//    public static LeaveEvent create(LeaveEventType eventType, Leave activity){
//        LeaveEvent event = new LeaveEvent();
//        event.setId(IdGenerator.nextId());
//        event.setLeaveEventType(eventType);
//        event.setTimestamp(new Date());
//        event.setData(JSON.toJSONString(activity));
//        return event;
//    }
//}
